package view;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JTextField;

import javax.swing.WindowConstants;
import org.jdesktop.application.Application;
import javax.swing.SwingUtilities;


/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class FrameSelecItems extends javax.swing.JFrame {

	/**
	* Auto-generated main method to display this JFrame
	*/
	private static FrameSelecItems instancia;
	private JTextField jTextFieldCantidad;
	private JButton jButtonCancelar;
	private JButton jButtonGuardar;
	private JLabel jLabelCantidad;
	private JButton jButtonBuscar;
	private JTextField jTextFieldNomIng;
	private JLabel jLabelNombreIng;
	private JLabel jLabelTitulo;

	public static FrameSelecItems getInstancia(){
		if(instancia==null){
			instancia=new FrameSelecItems();
		}
		return instancia;
	}
	
	private FrameSelecItems() {
		super();
		initGUI();
	}
	
	private void initGUI() {
		try {
			setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
			getContentPane().setLayout(null);
			getContentPane().add(getJLabelTitulo());
			getContentPane().add(getJLabelNombreIng());
			getContentPane().add(getJTextFieldNomIng());
			getContentPane().add(getJButtonBuscar());
			getContentPane().add(getJLabelCantidad());
			getContentPane().add(getJTextFieldCantidad());
			getContentPane().add(getJButtonGuardar());
			getContentPane().add(getJButtonCancelar());
			pack();
			setSize(400, 300);
			Application.getInstance().getContext().getResourceMap(getClass()).injectComponents(getContentPane());
		} catch (Exception e) {
		    //add your error handling code here
			e.printStackTrace();
		}
	}
	
	private JLabel getJLabelTitulo() {
		if(jLabelTitulo == null) {
			jLabelTitulo = new JLabel();
			jLabelTitulo.setBounds(110, 12, 169, 14);
			jLabelTitulo.setName("jLabelTitulo");
		}
		return jLabelTitulo;
	}
	
	private JLabel getJLabelNombreIng() {
		if(jLabelNombreIng == null) {
			jLabelNombreIng = new JLabel();
			jLabelNombreIng.setBounds(44, 63, 137, 14);
			jLabelNombreIng.setName("jLabelNombreIng");
		}
		return jLabelNombreIng;
	}
	
	private JTextField getJTextFieldNomIng() {
		if(jTextFieldNomIng == null) {
			jTextFieldNomIng = new JTextField();
			jTextFieldNomIng.setBounds(163, 60, 80, 21);
		}
		return jTextFieldNomIng;
	}
	
	private JButton getJButtonBuscar() {
		if(jButtonBuscar == null) {
			jButtonBuscar = new JButton();
			jButtonBuscar.setBounds(279, 60, 77, 21);
			jButtonBuscar.setName("jButtonBuscar");
		}
		return jButtonBuscar;
	}
	
	private JLabel getJLabelCantidad() {
		if(jLabelCantidad == null) {
			jLabelCantidad = new JLabel();
			jLabelCantidad.setBounds(44, 101, 102, 14);
			jLabelCantidad.setName("jLabelCantidad");
		}
		return jLabelCantidad;
	}
	
	private JTextField getJTextFieldCantidad() {
		if(jTextFieldCantidad == null) {
			jTextFieldCantidad = new JTextField();
			jTextFieldCantidad.setBounds(164, 98, 80, 21);
		}
		return jTextFieldCantidad;
	}
	
	private JButton getJButtonGuardar() {
		if(jButtonGuardar == null) {
			jButtonGuardar = new JButton();
			jButtonGuardar.setBounds(114, 181, 85, 21);
			jButtonGuardar.setName("jButtonGuardar");
		}
		return jButtonGuardar;
	}
	
	private JButton getJButtonCancelar() {
		if(jButtonCancelar == null) {
			jButtonCancelar = new JButton();
			jButtonCancelar.setBounds(224, 181, 88, 21);
			jButtonCancelar.setName("jButtonCancelar");
		}
		return jButtonCancelar;
	}

}
